The GetMovieIndTrackType function allows you to search for all of a movie's tracks that share a given media type or media characteristic.
pascal Track GetMovieIndTrackType (
Movie theMovie,
long index,
OSType trackType,
long flags);
The toolbox returns the track identifier that corresponds to the track that meets your selection criteria. If the toolbox cannot find a matching track, in returns a value of nil .
Note that the index parameter does not work the same way that is does in the GetMovieIndTrack function. With the GetMovieIndTrackType function, the index parameter specifies an index into the set of tracks that meet your other selection criteria. For example, in order to find the third track that supports the sound characteristic, you would call the function in the following manner:
theTrack = GetMovieIndTrackType (
theMovie,
3,
AudioMediaCharacteristic,
movieTrackCharacteristic);
| Previous | Chapter Contents | Chapter Top | Next |